arm/mem_access: Add and cleanup (TCR_|TTBCR_)* defines
authorSergej Proskurin <proskurin@sec.in.tum.de>
Wed, 16 Aug 2017 13:17:32 +0000 (15:17 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 18 Aug 2017 17:27:13 +0000 (10:27 -0700)
commit610cab040dc1a1e48f017133937f4e18a94e9426
tree841c3b858b1573f15ee59d0955f0b0ae204bf5d5
parent08143c5b6c1fc1e67e0d86cbff09aa3c2d46b93a
arm/mem_access: Add and cleanup (TCR_|TTBCR_)* defines

This commit adds (TCR_|TTBCR_)* defines to simplify access to the
respective register contents. At the same time, we adjust the macros
TCR_T0SZ and TCR_TG0_* by using the newly introduced TCR_T0SZ_SHIFT and
TCR_TG0_SHIFT instead of the hardcoded values.

Signed-off-by: Sergej Proskurin <proskurin@sec.in.tum.de>
Acked-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/processor.h